package com.pmsystem.pojo;

import java.util.ArrayList;
import java.util.List;

public class OfficeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;
    
  //分页操作----------------------------------------------
    private int startRow;
    private int pageSize;
    public int getStartRow() {
		return startRow;
	}
	public void setStartRow(int startRow) {
		this.startRow = startRow;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	//分页操作----------------------------------------------

    public OfficeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOfficeAreaIdIsNull() {
            addCriterion("office_area_id is null");
            return (Criteria) this;
        }

        public Criteria andOfficeAreaIdIsNotNull() {
            addCriterion("office_area_id is not null");
            return (Criteria) this;
        }

        public Criteria andOfficeAreaIdEqualTo(Integer value) {
            addCriterion("office_area_id =", value, "officeAreaId");
            return (Criteria) this;
        }

        public Criteria andOfficeAreaIdNotEqualTo(Integer value) {
            addCriterion("office_area_id <>", value, "officeAreaId");
            return (Criteria) this;
        }

        public Criteria andOfficeAreaIdGreaterThan(Integer value) {
            addCriterion("office_area_id >", value, "officeAreaId");
            return (Criteria) this;
        }

        public Criteria andOfficeAreaIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("office_area_id >=", value, "officeAreaId");
            return (Criteria) this;
        }

        public Criteria andOfficeAreaIdLessThan(Integer value) {
            addCriterion("office_area_id <", value, "officeAreaId");
            return (Criteria) this;
        }

        public Criteria andOfficeAreaIdLessThanOrEqualTo(Integer value) {
            addCriterion("office_area_id <=", value, "officeAreaId");
            return (Criteria) this;
        }

        public Criteria andOfficeAreaIdIn(List<Integer> values) {
            addCriterion("office_area_id in", values, "officeAreaId");
            return (Criteria) this;
        }

        public Criteria andOfficeAreaIdNotIn(List<Integer> values) {
            addCriterion("office_area_id not in", values, "officeAreaId");
            return (Criteria) this;
        }

        public Criteria andOfficeAreaIdBetween(Integer value1, Integer value2) {
            addCriterion("office_area_id between", value1, value2, "officeAreaId");
            return (Criteria) this;
        }

        public Criteria andOfficeAreaIdNotBetween(Integer value1, Integer value2) {
            addCriterion("office_area_id not between", value1, value2, "officeAreaId");
            return (Criteria) this;
        }

        public Criteria andOfficeNameIsNull() {
            addCriterion("office_name is null");
            return (Criteria) this;
        }

        public Criteria andOfficeNameIsNotNull() {
            addCriterion("office_name is not null");
            return (Criteria) this;
        }

        public Criteria andOfficeNameEqualTo(String value) {
            addCriterion("office_name =", value, "officeName");
            return (Criteria) this;
        }

        public Criteria andOfficeNameNotEqualTo(String value) {
            addCriterion("office_name <>", value, "officeName");
            return (Criteria) this;
        }

        public Criteria andOfficeNameGreaterThan(String value) {
            addCriterion("office_name >", value, "officeName");
            return (Criteria) this;
        }

        public Criteria andOfficeNameGreaterThanOrEqualTo(String value) {
            addCriterion("office_name >=", value, "officeName");
            return (Criteria) this;
        }

        public Criteria andOfficeNameLessThan(String value) {
            addCriterion("office_name <", value, "officeName");
            return (Criteria) this;
        }

        public Criteria andOfficeNameLessThanOrEqualTo(String value) {
            addCriterion("office_name <=", value, "officeName");
            return (Criteria) this;
        }

        public Criteria andOfficeNameLike(String value) {
            addCriterion("office_name like", value, "officeName");
            return (Criteria) this;
        }

        public Criteria andOfficeNameNotLike(String value) {
            addCriterion("office_name not like", value, "officeName");
            return (Criteria) this;
        }

        public Criteria andOfficeNameIn(List<String> values) {
            addCriterion("office_name in", values, "officeName");
            return (Criteria) this;
        }

        public Criteria andOfficeNameNotIn(List<String> values) {
            addCriterion("office_name not in", values, "officeName");
            return (Criteria) this;
        }

        public Criteria andOfficeNameBetween(String value1, String value2) {
            addCriterion("office_name between", value1, value2, "officeName");
            return (Criteria) this;
        }

        public Criteria andOfficeNameNotBetween(String value1, String value2) {
            addCriterion("office_name not between", value1, value2, "officeName");
            return (Criteria) this;
        }

        public Criteria andOfficeBossNameIsNull() {
            addCriterion("office_boss_name is null");
            return (Criteria) this;
        }

        public Criteria andOfficeBossNameIsNotNull() {
            addCriterion("office_boss_name is not null");
            return (Criteria) this;
        }

        public Criteria andOfficeBossNameEqualTo(String value) {
            addCriterion("office_boss_name =", value, "officeBossName");
            return (Criteria) this;
        }

        public Criteria andOfficeBossNameNotEqualTo(String value) {
            addCriterion("office_boss_name <>", value, "officeBossName");
            return (Criteria) this;
        }

        public Criteria andOfficeBossNameGreaterThan(String value) {
            addCriterion("office_boss_name >", value, "officeBossName");
            return (Criteria) this;
        }

        public Criteria andOfficeBossNameGreaterThanOrEqualTo(String value) {
            addCriterion("office_boss_name >=", value, "officeBossName");
            return (Criteria) this;
        }

        public Criteria andOfficeBossNameLessThan(String value) {
            addCriterion("office_boss_name <", value, "officeBossName");
            return (Criteria) this;
        }

        public Criteria andOfficeBossNameLessThanOrEqualTo(String value) {
            addCriterion("office_boss_name <=", value, "officeBossName");
            return (Criteria) this;
        }

        public Criteria andOfficeBossNameLike(String value) {
            addCriterion("office_boss_name like", value, "officeBossName");
            return (Criteria) this;
        }

        public Criteria andOfficeBossNameNotLike(String value) {
            addCriterion("office_boss_name not like", value, "officeBossName");
            return (Criteria) this;
        }

        public Criteria andOfficeBossNameIn(List<String> values) {
            addCriterion("office_boss_name in", values, "officeBossName");
            return (Criteria) this;
        }

        public Criteria andOfficeBossNameNotIn(List<String> values) {
            addCriterion("office_boss_name not in", values, "officeBossName");
            return (Criteria) this;
        }

        public Criteria andOfficeBossNameBetween(String value1, String value2) {
            addCriterion("office_boss_name between", value1, value2, "officeBossName");
            return (Criteria) this;
        }

        public Criteria andOfficeBossNameNotBetween(String value1, String value2) {
            addCriterion("office_boss_name not between", value1, value2, "officeBossName");
            return (Criteria) this;
        }

        public Criteria andOfficeBossTelephoneIsNull() {
            addCriterion("office_boss_telephone is null");
            return (Criteria) this;
        }

        public Criteria andOfficeBossTelephoneIsNotNull() {
            addCriterion("office_boss_telephone is not null");
            return (Criteria) this;
        }

        public Criteria andOfficeBossTelephoneEqualTo(String value) {
            addCriterion("office_boss_telephone =", value, "officeBossTelephone");
            return (Criteria) this;
        }

        public Criteria andOfficeBossTelephoneNotEqualTo(String value) {
            addCriterion("office_boss_telephone <>", value, "officeBossTelephone");
            return (Criteria) this;
        }

        public Criteria andOfficeBossTelephoneGreaterThan(String value) {
            addCriterion("office_boss_telephone >", value, "officeBossTelephone");
            return (Criteria) this;
        }

        public Criteria andOfficeBossTelephoneGreaterThanOrEqualTo(String value) {
            addCriterion("office_boss_telephone >=", value, "officeBossTelephone");
            return (Criteria) this;
        }

        public Criteria andOfficeBossTelephoneLessThan(String value) {
            addCriterion("office_boss_telephone <", value, "officeBossTelephone");
            return (Criteria) this;
        }

        public Criteria andOfficeBossTelephoneLessThanOrEqualTo(String value) {
            addCriterion("office_boss_telephone <=", value, "officeBossTelephone");
            return (Criteria) this;
        }

        public Criteria andOfficeBossTelephoneLike(String value) {
            addCriterion("office_boss_telephone like", value, "officeBossTelephone");
            return (Criteria) this;
        }

        public Criteria andOfficeBossTelephoneNotLike(String value) {
            addCriterion("office_boss_telephone not like", value, "officeBossTelephone");
            return (Criteria) this;
        }

        public Criteria andOfficeBossTelephoneIn(List<String> values) {
            addCriterion("office_boss_telephone in", values, "officeBossTelephone");
            return (Criteria) this;
        }

        public Criteria andOfficeBossTelephoneNotIn(List<String> values) {
            addCriterion("office_boss_telephone not in", values, "officeBossTelephone");
            return (Criteria) this;
        }

        public Criteria andOfficeBossTelephoneBetween(String value1, String value2) {
            addCriterion("office_boss_telephone between", value1, value2, "officeBossTelephone");
            return (Criteria) this;
        }

        public Criteria andOfficeBossTelephoneNotBetween(String value1, String value2) {
            addCriterion("office_boss_telephone not between", value1, value2, "officeBossTelephone");
            return (Criteria) this;
        }

        public Criteria andEnableIsNull() {
            addCriterion("enable is null");
            return (Criteria) this;
        }

        public Criteria andEnableIsNotNull() {
            addCriterion("enable is not null");
            return (Criteria) this;
        }

        public Criteria andEnableEqualTo(Byte value) {
            addCriterion("enable =", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableNotEqualTo(Byte value) {
            addCriterion("enable <>", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableGreaterThan(Byte value) {
            addCriterion("enable >", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableGreaterThanOrEqualTo(Byte value) {
            addCriterion("enable >=", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableLessThan(Byte value) {
            addCriterion("enable <", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableLessThanOrEqualTo(Byte value) {
            addCriterion("enable <=", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableIn(List<Byte> values) {
            addCriterion("enable in", values, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableNotIn(List<Byte> values) {
            addCriterion("enable not in", values, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableBetween(Byte value1, Byte value2) {
            addCriterion("enable between", value1, value2, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableNotBetween(Byte value1, Byte value2) {
            addCriterion("enable not between", value1, value2, "enable");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}